package org.qf.service.impl;

import org.qf.dao.ProviderDao;
import org.qf.dao.SmbmsUserDao;
import org.qf.dao.impl.ProviderDaoImpl;
import org.qf.dao.impl.SmbmsUserDaoImpl;
import org.qf.pojo.SmbmsProvider;
import org.qf.service.SmbmsProviderService;

import java.util.List;

/**
 * @author young
 * @create 2021-01-14-14:06
 * @description
 */
public class SmbmsProviderServiceImpl implements SmbmsProviderService {
    private ProviderDao smbmsUserDao=new ProviderDaoImpl();
    @Override
    public List<SmbmsProvider> queryList(String proName, int currentPageNo, int pageSize) throws Exception {
        return smbmsUserDao.queryUserByProName(proName,currentPageNo,pageSize);
    }

    @Override
    public int getSmbmsProviderCount(String proName) throws Exception {
        return smbmsUserDao.getSmbmsProviderCount(proName);
    }

    @Override
    public SmbmsProvider queryByid(Long id) throws Exception {
        return smbmsUserDao.queryByid(id);
    }

    @Override
    public int updateProvider(SmbmsProvider smbmsProvider) throws Exception {
        return smbmsUserDao.updateProvider(smbmsProvider);
    }

    @Override
    public int addProvider(SmbmsProvider smbmsProvider) throws Exception {
        return smbmsUserDao.addProvider(smbmsProvider);
    }

    @Override
    public int deleteProvider(Long id) throws Exception {
        return smbmsUserDao.deleteProvider(id);
    }
}
